package com.gugee.ins.common.dal.service.media.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.media.InsLocationMapper;
import com.gugee.ins.common.dal.service.media.InsLocationDao;
import com.gugee.ins.common.model.mysql.media.InsLocation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * insBlogger dao
 * @author Huangxin
 */
@Slf4j
@Service
public class InsLocationImpl extends ServiceImpl<InsLocationMapper,InsLocation> implements InsLocationDao {

    @Override
    public InsLocation findByLocationId(long id) {
        QueryWrapper<InsLocation> wrapper = new QueryWrapper<>();
        wrapper.eq("location_id",id);
        return baseMapper.selectOne(wrapper);
    }
}
